package addEmployeeTransaction;

import schedule.MonthlySchedule;
import schedule.PaymentSchedule;
import classification.PaymentClassification;
import classification.SalariedClassification;
import database.PayrollDatabase;

public class AddSalariedEmployee extends AddEmployeeTransaction {

	private double salary;

	public AddSalariedEmployee(int id, String name, String address,
			double salary, PayrollDatabase database) {
		super(id, name, address, database);
		this.salary = salary;
	}

	@Override
	protected PaymentClassification makeClassification() {
		return new SalariedClassification(salary);
	}

	@Override
	protected PaymentSchedule makeSchedule() {
		return new MonthlySchedule();
	}
}